Objects Reference

bsp_object::step

Prototype

virtual int step(int dt)

Parameters

Parameter Type Description
dt int time interval in ms from last frame

Return Value

If it returns TRUE, the object is repositioned in bsp tree, returns FALSE if the object does not move.

Remarks

This virtual function is used for updating the object. The object must do whatever it has to do for the elapsed time interval (move, rotate, attack, ... whatever).

Its default behaviour is to move like a particle if not implemented by a sub-class.